using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BlazingObject : TouchObject
{
    void Update()
    {
        if (HasTriggered)
        {
            if (IsStateFinished)
            {
                Destroy(this.gameObject);
            }
        }
    }

    public override void TriggerEvent()
    {
        animator = GetComponent<Animator>();
        stateStartTime = Time.time;
        animator.Play("Burning");
    }
}
